{include file="public/head"/}

<body>
<div class="x-body">
    <form class="layui-form" action="{:url('contractAdd')}" method="post" enctype="multipart/form-data">
        <div class="layui-form-item">
            <label for="L_email" class="layui-form-label">
                <span class="x-red">*</span>所属小区
            </label>
            <div class="layui-input-inline" style="text-align: left; width:300px;">
                <select id="community_id" name="community_id">
                    <option value="" selected="true">请选择小区</option>
                    {foreach $communitylist as $comm}
                    <option value="{$comm.id}">{$comm.name}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label for="building" class="layui-form-label">
                <span class="x-red">*</span>楼栋:
            </label>
            <div class="layui-input-inline">
                <input type="text" id="building" name="building" required="" lay-verify="required"
                       autocomplete="off" class="layui-input"  style="width: 300px;">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="phone" class="layui-form-label">
                <span class="x-red">*</span>电话:
            </label>
            <div class="layui-input-inline">
                <input type="text" id="phone" name="phone" required="" lay-verify="required"
                       autocomplete="off" class="layui-input"  style="width: 300px;">
            </div>
        </div>



        <div class="layui-form-item">
            <label for="L_repass" class="layui-form-label">
            </label>
            <button  class="layui-btn" lay-filter="add" lay-submit="">
                添加
            </button>
        </div>
    </form>
</div>

</body>
</html>